package com.test.demo;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

import java.util.concurrent.TimeUnit;

public class BossAutoFilterApp {
    public static void main(String[] args) {
        System.setProperty("webdriver.chrome.bin", "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
        //初始化设置
        System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe");
        //设置用户数据，同步主浏览器的数据
        ChromeOptions options = new ChromeOptions();
        options.addArguments("user-data-dir=C:\\Users\\15700\\AppData\\Local\\Google\\Chrome\\User Data");

        WebDriver webDriver = new ChromeDriver(options);
        webDriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

        BossAuto bossAuto = new BossAuto(webDriver);
        if (args != null && args.length > 0 && "wide".equals(args[0])) {
            bossAuto.enableSearchWidely();
        }
        bossAuto.run();
    }
}
